home *** CD-ROM | disk | FTP | other *** search
/ Aminet 32 / Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso / GoldED / Add-Ons / envCPP24 / Install < prev    next >
Text File  |  1999-07-06  |  4KB  |  181 lines

  1. ; $VER: 1.0 All rights reserved.
  2.  
  3. (delopts "oknodelete" "force" "askuser")
  4. (complete 0)
  5.  
  6. (if (exists "GOLDED:" (NOREQ))
  7.  
  8.     (
  9.         (set vernum (getversion "golded:golded"))
  10.  
  11.         (set ver (/ vernum 65536))
  12.         (set rev (- vernum (* ver 65536)))
  13.  
  14.         (set version (+ (* 10 ver) rev))
  15.  
  16.         (if (< version 47)
  17.  
  18.             (
  19.                 (message "\nSorry, GoldED 4.7.0 or better required")
  20.  
  21.                 (exit (quiet))
  22.             )
  23.         )
  24.  
  25.         (message (cat "\n"
  26.  
  27.             "                                            \n"
  28.             "C++ mode for GoldED 4                       \n"
  29.             "                                            \n"
  30.             "©1997 Dietmar Eilert                        \n"
  31.             "      All Rights Reserved.                  \n"
  32.             "                                            \n"
  33.             "      E-Mail: dietmar@tomate.tng.oche.de    \n"
  34.             "                                            \n"
  35.             "GoldED Release 4.7.0+ required.             \n"
  36.         ))
  37.  
  38.         (if (not (exists "golded:api"))
  39.  
  40.             (makedir "golded:api")
  41.         )
  42.  
  43.         (if (not (exists "golded:syntax"))
  44.  
  45.             (makedir "golded:syntax")
  46.         )
  47.  
  48.         (copylib
  49.  
  50.             (prompt "Install API client ?")
  51.             (source "api/mirror.api")
  52.             (dest   "golded:api")
  53.             (confirm)
  54.             (help @copylib-help)
  55.         )
  56.  
  57.         (copylib
  58.  
  59.             (prompt "Install API client ?")
  60.             (source "api/quickinfo.api")
  61.             (dest   "golded:api")
  62.             (confirm)
  63.             (help @copylib-help)
  64.         )
  65.  
  66.         (copylib
  67.  
  68.             (prompt "Install syntax parser ?")
  69.             (source "syntax/warpC++.parser")
  70.             (dest   "golded:syntax")
  71.             (confirm)
  72.             (help @copylib-help)
  73.         )
  74.  
  75.         ; install registry editor (if not yet installed)
  76.  
  77.         (if (not (exists "golded:tools"))
  78.  
  79.             (makedir "golded:tools")
  80.         )
  81.  
  82.         (if (not (exists "golded:tools/regedit"))
  83.  
  84.             (makedir "golded:tools/regedit")
  85.         )
  86.  
  87.         (copylib
  88.  
  89.             (prompt "Install registry editor ?")
  90.             (source "bin/regedit" )
  91.             (dest   "golded:tools/regedit")
  92.             (confirm)
  93.             (help @copylib-help)
  94.         )
  95.  
  96.         ; install main files
  97.  
  98.         (copyfiles
  99.  
  100.             (source "cpp")
  101.             (dest   "golded:tools/cpp")
  102.             (all)
  103.             (nogauge)
  104.         )
  105.  
  106.         ; install toolbar images
  107.  
  108.         (if (exists "toolbar") (
  109.  
  110.             (set hicolor
  111.  
  112.                 (askchoice
  113.  
  114.                     (prompt "\nSelect toolbar style:\n")
  115.  
  116.                     (choices
  117.  
  118.                         "4  colors"
  119.                         "8+ colors"
  120.                     )
  121.  
  122.                     (default 1)
  123.  
  124.                     (help (cat "\n"
  125.  
  126.                         " You can use both styles on all screens. The 4\n"
  127.                         " color style has been optimized for 4-color   \n"
  128.                         " screens. The 8+ style has been optimized for \n"
  129.                         " screens with eight or more colors.           \n"
  130.                     ))
  131.                 )
  132.             )
  133.  
  134.             (if (not (exists "golded:toolbar"))
  135.  
  136.                 (makedir "golded:toolbar")
  137.             )
  138.  
  139.             (if (not (exists "golded:toolbar/standard"))
  140.  
  141.                 (makedir "golded:toolbar/standard")
  142.             )
  143.  
  144.             (copyfiles
  145.  
  146.                 (source "toolbar")
  147.                 (dest   "golded:toolbar")
  148.                 (nogauge)
  149.                 (all)
  150.             )
  151.  
  152.             (if (= hicolor 1)
  153.  
  154.                 (copyfiles
  155.  
  156.                     (source "toolbar16")
  157.                     (dest   "golded:toolbar")
  158.                     (nogauge)
  159.                     (all)
  160.                 )
  161.             )
  162.         ))
  163.  
  164.         ; update registry
  165.  
  166.         (working "Updating registry...")
  167.  
  168.         (run "golded:tools/regedit/regedit script=install.bat")
  169.     )
  170.  
  171.     (message (cat "\n"
  172.  
  173.         "Please install GoldED before attempting to\n"
  174.         "install this client.                      \n"
  175.     ))
  176. )
  177.  
  178. (exit (quiet))
  179.  
  180. (welcome)
  181.